# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=blackarch-config-zsh
pkgver=12.1ee1abb
pkgrel=2
pkgdesc='BlackArch config for the zsh shell.'
arch=('any')
groups=('blackarch-config')
url='https://github.com/BlackArch/blackarch-config-zsh'
license=('custom:unknown')
depends=('zsh')
makedepends=('git')
source=("git+https://github.com/BlackArch/$pkgname.git")
install="$pkgname.install"
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/blackarch/config/zsh"
  install -Dm 644 zshrc "$pkgdir/usr/share/blackarch/config/zsh"
}

